package com.chenyaowei.happyhub.pojo.wechatuser;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account {
    private int id;
    /**
     * 微信的openid
     */
    private String openid;
    /**
     * 微信的session_key
     */
    private String sessionKey;
    /**
     * 微信昵称
     */
    private String nickName;
    /**
     * 性别 0：未知、1：男、2：女
     */
    private Integer gender;
    /**
     * 语言
     */
    private String language;
    /**
     * 城市
     */
    private String city;
    /**
     * 省份
     */
    private String province;
    /**
     * 国家
     */
    private String country;
    /**
     * 头像url
     */
    private String avatarUrl;

    private String role;

    private boolean pay;

    private boolean login;
    public Account(String openid,String sessionKey,String role){
        this.openid=openid;
        this.sessionKey=sessionKey;
        this.role=role;
    }

    public Account(String nickName, Integer gender, String language, String city, String province, String country, String avatarUrl) {
        this.nickName = nickName;
        this.gender = gender;
        this.language = language;
        this.city = city;
        this.province = province;
        this.country = country;
        this.avatarUrl = avatarUrl;
    }
}
